package com.ms.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ms.commons.domain.SysPermission;
import com.ms.commons.domain.SysRole;
import com.ms.commons.domain.SysUser;
import com.ms.user.mapper.SysUserMapper;
import com.ms.user.service.ISysUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:SmartV
 * @date:2021/12/2 12:50
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {
    @Override
    public List<SysPermission> getPermissionByUserId(Long id) {
        return baseMapper.getPermissionByUserId(id);
    }

    @Override
    public List<SysRole> findRoleByUserId(Long id) {
        return baseMapper.findRoleByUserId(id);
    }
}
